home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
scroller.ifx
< prev
next >
Wrap
Text File
|
2004-08-03
|
2KB
|
95 lines
/*
* $VER: Scroller 1.00.00 (24.9.92)
*
* Arexx program for the ImageFX image processing system.
* Written by Thomas Krehbiel
*
* Create an animation consisting of a vertical crawl of text
* going up the screen.
* The animation is saved to "RAM:Test.anim".
*
*/
/*
* Scroll some text up the screen.
*
*/
OPTIONS RESULTS
IF EXISTS('ram:Test.anim') THEN
ADDRESS COMMAND 'Delete RAM:Test.anim'
width = 640
height = 400
/* Text of the crawl. text.0 = number of lines. text.1 .. text.N
is the actual lines of the text, each will be centered. */
text.0 = 15
text.1 = "Amiga Icon"
text.2 = "ANIM"
text.3 = "DPIIE"
text.4 = "GIF"
text.5 = "HAM-E"
text.6 = "ILBM"
text.7 = "Impulse"
text.8 = "JPEG"
text.9 = "PCX"
text.10 = "PBM"
text.11 = "Rendition"
text.12 = "Sculpt"
text.13 = "Targa"
text.14 = "TIFF"
text.15 = "Clipboard"
CreateBuffer Force width height Grey
EdgeMode AntiAlias
Render Mode Hires Lace
Render Dither 0 0 0
Render Colors 4
top = height
ysize = 80
spacing = 160
scroll = 15
frames = ((text.0+2) * spacing) % scroll
Undo Off ; Redraw Off
DO i = 1 TO frames
Message 'Frame' i 'of' frames
Render Close
ClearBuffer 0 0 0 Force
LockGUI
DO l = 1 TO text.0
x = width%2
y = (top+(l-1)*spacing)
IF y+ysize < 0 THEN ITERATE
Text "CGTriumvirate.font" ysize 100 text.l
GetBrush ; IF result = "" THEN LEAVE
PARSE VAR result name bw bh .
BrushHandle YOFFSET 0
Point x y
KillBrush
IF y > height THEN LEAVE
END
UnlockGUI
Render Go
SaveRenderedAs ANIM 'ram:Test.anim' Keep Append
top = top - scroll
END
SaveRenderedAs ANIM 'ram:Test.anim' Close
Render Close
Redraw On ; Undo On